x86: adjust available memory calculation for Dom0 construction
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Mar 2010 17:40:35 +0000 (17:40 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Mar 2010 17:40:35 +0000 (17:40 +0000)
commite03337ee2469d695322bc1b77f5af751c13a0486
tree8397bf7cdc28bcadcb812ddd91bc163b4d084859
parent8343b1c548720a423101c278f7a070a1e8ace94d
x86: adjust available memory calculation for Dom0 construction

With a large number of CPUs, the amount of memory needed to construct
the vCPU structures for Dom0 becomes significant and hence should be
accounted for when calculating the amount of memory to pass to Dom0.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Add code comments and clean up compute_dom0_nr_pages() invocation.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/domain_build.c